package com.gurid.service.trade.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gurid.service.base.model.BaseEntity;
import java.io.Serializable;
import java.math.BigDecimal;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单
 * </p>
 *
 * @author Gurid
 * @since 2024-06-04
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("trade_order")
@Schema(name = "Order", description = "订单")
public class Order extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Schema(description = "订单号")
    private String orderNo;

    @Schema(description = "课程id")
    private String courseId;

    @Schema(description = "课程名称")
    private String courseTitle;

    @Schema(description = "课程封面")
    private String courseCover;

    @Schema(description = "讲师名称")
    private String teacherName;

    @Schema(description = "会员id")
    private String memberId;

    @Schema(description = "会员昵称")
    private String nickname;

    @Schema(description = "会员手机")
    private String mobile;

    @Schema(description = "订单金额（分）")
    private BigDecimal totalFee;

    @Schema(description = "支付类型（1：微信 2：支付宝）")
    private Integer payType;

    @Schema(description = "订单状态（0：未支付 1：已支付）")
    private Integer status;

    @Schema(description = "逻辑删除 1（true）已删除， 0（false）未删除")
    @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;
}
